package com.kgc.scd.service;

import com.kgc.scd.bean.Address;
import com.kgc.scd.util.RequestResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: WangKuoKuo
 * @create: 2022-06-14 14:42
 * @description:
 **/
@FeignClient("blmall-server-wkk")
// @RequestMapping("/address")
public interface AddressServiceFeign {

    // 新增地址
    @PostMapping("/addAddress")
    RequestResult<Address> addAddress(@RequestBody Address address);

    // 根据地址id删除地址
    @PostMapping("/delAddress")
    RequestResult<String> delAddress(@RequestParam("addrId") String addrId);

    //修改地址
    @PostMapping("/modAddress")
    RequestResult<Address> modAddress(@RequestBody Address address);

    // 查询指定用户的全部地址
    @GetMapping("/listAddress")
    RequestResult<List<Address>> listAddress(@RequestParam("addrUserId") String addrUserId);


}
